<link rel="stylesheet" href="menuHead/jquery.cleditor.css">
<link href="menu2/styles.css" rel="stylesheet" type="text/css">
<script type="text/javascript"  src="cryptMD5.js"></script>
<div id="header">
    <header>
        
        <i><h1 style="float:left; color:white;">Gestion des stages</h1>
   
    
 <?php   

 require_once 'connexion (2).php';
 
 //$date=date("Y-m-d H:i:s i");
 //echo $date;
 
    if (!(isset($_SESSION['mail'])))
		{?>
          <a href="motdepasse.php" style="float:right; font-size: 80%; color:whi te;">Mot de passe oublié !</a>&nbsp;
          <!--<form action="index.php" method="POST">
              <input type="submit" id="connexion" value="Connexion">&nbsp;&nbsp;<br>
          </form>-->
              
 <?php    }else {
          $req_nom="select * from personne where MAILPERSONNE='".$_SESSION['mail']."'";
          $res_nom=$connexion->query($req_nom);
          if($result=$res_nom->fetch(PDO::FETCH_ASSOC))
          {
              $nom="<i class='conex'><font size='2' color='blue' >Bonjour, ".$result['NOMPERSONNE']." ".$result['PRENOMPERSONNE']."\n";
              $typeP=$result['TYPEPERSONNE'];
              
          }
  
          echo $nom.'<br> <div id="cssmenu" style="float:right;">
<ul>
   <li class="has-sub last"><a><span>Mon compte</span></a>
      <ul>
         <li><a href="coordonne.php?choix='.$typeP.'"><span>Mon Profil</span></a></li>
         <li class="last">
                <form action="logout.php" method="POST">
                <a href="logout.php"><span>Déconnexion</span></a></form></li>
      </ul>
   </li>
</ul>
</div></font></i>';
             
           









             // <input type="submit" class="conex" id="Déconnexion" value="Déconnexion">
          //';
    }?>    
</i>
 </header>
</div><br><br><br><br>